package dao;

import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.HashMap;
/**
 * Interface for general database access.
 * @author Jolle
 * @version 1.0.0
 */
public interface DBAccessInterface {
	public void closeConnection() throws DBException;
	public void closeStatement() throws DBException;
	public void connect() throws DBException;
	public void connect(String database) throws DBException;
	public void createTable(String table) throws DBException;
	public void execute(String query) throws DBException;
	public void setDSN(DSN dsn);
	public boolean tableExists(String table) throws DBException;
	public String[] getDataBasesList() throws DBException;
	public ArrayList<HashMap<String, Object>> getResultAsList(String query) throws DBException;
	public String[] getTablesList() throws DBException;
	public ResultSet query(String query) throws DBException;
}
